package com.healthcarex.hip.saas.oauth2config.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * @author  ChenPan
 * @date   2018/6/26 17:07
 * description: 忽略权限的url配置
 */

@Data
@Configuration
@ConditionalOnExpression("!'${ignore}'.isEmpty()")
@ConfigurationProperties(prefix = "ignore")
public class IgnoreUrlsProperties {

  private List<String> urls = new ArrayList<>();

  private List<String> clients = new ArrayList<>();
}
